package com.xixixi.service.impl;

import com.xixixi.mapper.ItemsMapper;
import com.xixixi.po.Items;
import com.xixixi.service.ItemsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemsServiceImpl implements ItemsService {

    @Autowired
    private ItemsMapper itemsMapper;

    public List<Items> findItemsByName(String name) throws Exception {
        return itemsMapper.findItemsByName(name);
    }

    public Items findItemById(int id) throws Exception{
        return itemsMapper.findItemById(id);
    }
}